package TwT2;

public class ComputerStore {

    private final Computer computer1;
    private final Computer computer2;
    private final Computer computer3;

    public ComputerStore(Computer computer1,Computer computer2,Computer computer3){
        this.computer1 = computer1;
        this.computer2 = computer2;
        this.computer3 = computer3;
    }

    public void Display(){
        System.out.println("====================");
        computer1.Display();
        computer1.work();
        System.out.println("====================");
        computer2.Display();
        computer2.work();
        System.out.println("====================");
        computer3.Display();
        computer3.work();
        System.out.println("====================");
    }

    public static void main(String[] args) {
        AMD R9_3900X = new AMD("R9_3900X",9,3700);
        Intel i7_10700k = new Intel("i7_10700k",10,3300);
        Samsung DDR4_2666 = new Samsung("DDR4_2666","16G",1200);
        Kingston Predator= new Kingston("Predator","32G",1300);
        Seagate DM003 = new Seagate("DM003","1TB",300);
        WestDigitals EZAZ = new WestDigitals("EZAZ","4TB",500);
        Asus Z79 = new Asus("Z79","10GB/s",1400);
        Gigabyte GAZ170X = new Gigabyte("GAZ170X","40GB/S",2000);
        Computer computer1 = new Computer("NO.1",R9_3900X,DDR4_2666,DM003,Z79);
        Computer computer2 = new Computer("NO.2",i7_10700k,Predator,EZAZ,GAZ170X);
        Computer computer3 = new Computer("NO.3",i7_10700k,Predator,DM003,Z79);
        ComputerStore total = new ComputerStore(computer1,computer2,computer3);
        total.Display();

    }

}
